<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport"
	content="width=device">
	<title>Document</title>
</head>
<body>
	<h2 align="center">学生信息</h2>
	<table border="1" cellpadding="5" cellspacing="0" align="center" width="60%">
		<tr bgcolor="#87ceeb">
			<th>ID</th>
			<th>姓名</th>
			<th>邮箱</th>
			<th>课程</th>
			<th>成绩</th>
		</tr>

		<?php foreach ($data as $stu):?>
			<tr align="center">
				<td><? echo $stu['id'];?></td>
				<td><? echo $stu['name'];?></td>
				<td><? echo $stu['email'];?></td>
				<td><? echo $stu['course'];?></td>
				<td><? echo $stu['grade'];?></td>
			</tr>
		<?php endforeach;?>

	</table>
	<p align="center">共计:<?php echo ($data);?></p>
</body>